<?php
// +----------------------------------------------------------------------
// | saiadmin [ saiadmin快速开发框架 ]
// +----------------------------------------------------------------------
// | Author: your name
// +----------------------------------------------------------------------
namespace app\park\model;

use plugin\saiadmin\basic\BaseNormalModel;

/**
 * 园区视频模型
 */
class ParkVideo extends BaseNormalModel
{

    /**
     * 数据表主键
     * @var string
     */
    protected $pk = 'video_id';

    /**
     * 数据库表名称
     * @var string
     */
    protected $table = 'eb_park_video';

        
    /**
     * 视频标题 搜索
     */
    public function searchVideoTitleAttr($query, $value)
    {
        $query->where('video_title', 'like', '%'.$value.'%');
    }
}
